$(function(){
	$(".lightbox").lightbox({
	    fitToScreen: true,
	    fileLoadingImage:"img/loading.gif",
		fileBottomNavCloseImage:"img/closelabel.gif",
		slideNavBar:true	//隐藏底部
    });
	
	SyntaxHighlighter.all();
	//图片上传
	$("#uploadPic").uploadfile({
		title:'图片上传演示',
		url:'http://image.tanjun.com.cn/upload/index.htm',
		uploadType:'1',
		type:'image',
		uploadLimit:1,
		remove:true,
		upSuccess:function(data){
			//data为上传返回的json数组，自己根据业务操作data
			//alert(data[0].path);
		}
	}); 
	//文件上传
	$("#uploadFile").uploadfile({
		title:'文件上传演示',
		url:'http://image.tanjun.com.cn/upload/index.htm',
		uploadType:'2',
		type:'file',
		remove:true,
		uploadLimit:1,
		fileSize:1,
		upSuccess:function(data){
			//data为上传返回的json数组，自己根据业务操作data
			//alert(data[0].path);
		}
	}); 
	
});

function download(){
	alert(12);
}

document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"js/plugin/syntaxhighlighter/styles/shCoreDefault.css\"/>");
document.write("<script type=\"text/javascript\" src=\"js/plugin/syntaxhighlighter/scripts/shCore.js\"></script>");
document.write("<script type=\"text/javascript\" src=\"js/plugin/syntaxhighlighter/scripts/shBrushJScript.js\"></script>");
	